package com.erp.controller.sales;

import com.erp.pojo.OrderPojo;
import io.swagger.annotations.*;
import org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author lqm
 * @ClassName ErpOrderController
 * @description: TODO
 */
@RestController
@RequestMapping("/erp/order")
@Api(tags = "订单管理")

public class ErpOrderController {
    @GetMapping("/list")
    @ApiOperation("订单列表")
    public Object getOrderList(OrderPojo orderPojo){

        return "list";
    }

    @GetMapping("/list2")
    @ApiOperation("订单列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "用户名", dataType = "Long", paramType = "query"),
            @ApiImplicitParam(name = "orderCode", value = "密码", dataType = "String", paramType = "query")
    })
    public Object getOrderList2(Long id, String orderCode){

        return "list";
    }
}
